<!DOCTYPE html>
<html>
  <head>
    <title>云丢丢|智能工作室管理平台</title>
    <%= csrf_meta_tags %>
    <link rel="stylesheet" type="text/css" href="/assets/css/welcome.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/reset.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/common-list.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/date_input.css">
    <link rel="stylesheet" type="text/css" href="/assets/css/pagination.css">
    <script type="text/javascript" src="/assets/js/jquery-1.12.3.js"></script>
    <script src="/assets/js/jquery.date_input.pack.js"></script>
    <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>

    <!-- 引入七牛云前段js -->
    <%= javascript_include_tag '/assets/plupload/plupload.full.min.js' %>
    <%= javascript_include_tag '/assets/qiniu/qiniu.min.js' %>

    <!-- 引入指定模块的样式 -->
    <% if File.exists?("#{Rails.root}/app/assets/stylesheets/#{controller_name}.scss") ||  File.exists?("#{Rails.root}/app/assets/stylesheets/#{controller_name}.css") %>
      <%= stylesheet_link_tag controller_name, :media => "all" %>
    <% end%>  

    <!-- 引入指定模块的js -->
    <% if File.exists?("#{Rails.root}/app/assets/javascripts/#{controller_name}.coffee") || File.exists?("#{Rails.root}/app/assets/javascripts/#{controller_name}.js") %>
      <%= javascript_include_tag controller_name%>
    <% end%>  

  </head>
  <body>
    <input type="hidden" id="current_action_name" value="<%= action_name %>">
    <input type="hidden" id="current_controller_name" value="<%= controller_name %>">
    <input type="hidden" id="qiniu_domain" value="<%= QiniuConfService.call.domain%>">
    
    <header>
      <div class="header-con">
        <a class="navbar-header" href="">
          <img src="/assets/images/logo.png" alt="">
        </a>
        <ul>
          <li>
            <a href="<%= admin_studios_path %>" id="home" >首页</a>
          </li>
          <li>
            <a href="<%= admin_employees_path %>" id="employee" >人资管理</a>
          </li>
          <li>
            <a href="javascript:;" id="target">指标设置</a>
            <div class="catalog-menu">
              <div><%= link_to "总监月指标", director_admin_targets_path %></div>
              <div><%= link_to "市场专员月指标", market_admin_targets_path %></div>
              <div><%= link_to "未分配意向学员(数量)", admin_targets_potential_students_path %></div>
              <div><%= link_to "服务顾问月指标", operator_admin_targets_path %></div>
              <div><%= link_to "未分配学员(数量)", admin_targets_students_path %></div>
              <div><%= link_to "导师月指标", teacher_admin_targets_path %></div>
            </div>
          </li>
          <li>
            <a href="javascript:;" id="finance">财务管理</a>
            <div class="catalog-menu">
              <div><%= link_to "固定成本设置", admin_fixed_costs_path %></div>
              <div><%= link_to "工资表", laborage_admin_finances_path %></div>
              <div><%= link_to "财务明细", admin_finances_path %></div>
            </div>
          </li>
          <li>
            <a href="javascript:;" id="statistical_datum">数据统计</a>
            <div class="catalog-menu">
              <div><%= link_to "综合数据", comprehensive_admin_statistical_datum_index_path %></div>
              <div><%= link_to "学员数据", student_admin_statistical_datum_index_path %></div>
              <div><%= link_to "导师数据", teacher_admin_statistical_datum_index_path %></div>
              <div><%= link_to "课程数据", curriculum_admin_statistical_datum_index_path %></div>
              <div><%= link_to "商品数据", commodity_admin_statistical_datum_index_path %></div>
              <div><%= link_to "招生数据", recruit_admin_statistical_datum_index_path %></div>
              <div><%= link_to "服务数据", service_admin_statistical_datum_index_path %></div>
              <div><%= link_to "财务数据", finance_admin_statistical_datum_index_path %></div>
              <div><%= link_to "人资数据", resource_admin_statistical_datum_index_path %></div>
            </div>
          </li>
          <li>
            <a href="<%= admin_company_configurations_path %>"  id="configuration">公司设置</a>
          </li>
        </ul>
      </div>
      <div class="peo-message">
        <div class="peo-cir">
          <!-- < img src="" alt=""> -->
        </div>
        <em><%= current_user.mobile %></em>
        <span class="down-list"></span>
        <ul>
          <li><%= link_to "账户信息", "#" %></li>
          <li><%= link_to "切换公司", switch_company_admin_companies_path %></li>
          <li><%= link_to "使用帮助", "#" %></li>
          <li><%= link_to "退出", logout_admin_sessions_path %></li>
        </ul>
      </div>
    </header>
    <%= yield %>
      
  </body>
</html>
